package com.cn.controller;

import com.cn.api.ApiResult;
import com.cn.service.ShopUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户接口信息
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private ShopUserService shopUserService;

    /**
     * 查询用户数据信息
     * @return
     */
    @GetMapping("/selectUser")
    public ApiResult selectUser(){
        return shopUserService.selectUser();
    }
}
